package com.bwie.controller;

import com.bwie.service.TbUserService;
import com.bwie.utils.Result;
import com.bwie.vo.LoginInfoVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Yoo19
 * @description :
 * @createDate : 2025/7/3 9:36 36
 */
@RestController
@RequestMapping("/auth")
public class AuthController {
    @Autowired
    private TbUserService tbUserService;


    /**
     * 登陆
     * @param loginInfoVo
     * @return
     */
    @ApiOperation("登陆")
    @PostMapping("/login")
    public Result login(@RequestBody LoginInfoVo loginInfoVo){
        return tbUserService.login(loginInfoVo);
    }
}
